<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,initial-scale=1.0,width=device-width" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>完善资料</title>
    <link rel="stylesheet" type="text/css" href="../../../../css/aui/aui.css" />
    <link rel="stylesheet" type="text/css" href="../../../../css/html/order/get_work_frm.css" />
    <style>
        .list_box {
            padding: 0 0.75rem;
        }

        .list_item {
            display: flex;
            justify-content: space-between;
            border-bottom: 1px solid #eee;
            line-height: 2.5rem;
        }

        .aui-icon-right {
            color: #ccc;
        }
    </style>
</head>

<body>
    <div id="app">
        <div class="list_box">
            <!-- <div class="list_item" @click="openWin('personal_info')"><div>个人信息</div><i class="aui-iconfont aui-icon-right"></i></div>
        <div class="list_item" @click="openWin('case_show')"><div>案例展示</div><i class="aui-iconfont aui-icon-right"></i></div>
        <div class="list_item" @click="openWin('service_info')"><div>服务信息</div><i class="aui-iconfont aui-icon-right"></i></div> -->
            <!-- TODO:未改完 -->
            <div class="list_item" @click="openWin('personal_info')">
                <div>基本信息</div><i class="aui-iconfont aui-icon-right"></i></div>
            <div class="list_item" v-if="userInfo.user_type===2" @click="openWin('authentication_information')">
                <div>认证资料</div><i class="aui-iconfont aui-icon-right"></i></div>
            <div class="list_item" v-if="userInfo.user_type===2" @click="openWin('service_info')">
                <div>服务信息</div><i class="aui-iconfont aui-icon-right"></i></div>
            <div class="list_item" v-if="userInfo.user_type===2" @click="openWin('case_show')">
                <div>案例展示</div><i class="aui-iconfont aui-icon-right"></i></div>
        </div>
    </div>
</body>
<script src="../../../../script/api.js" charset="utf-8"></script>
<script src="../../../../script/aui/aui-tab.js" charset="utf-8"></script>
<script src="../../../../script/common/jquery-3.3.1.min.js" charset="utf-8"></script>
<script src="../../../../script/common/common.js" charset="utf-8"></script>
<script src="../../../../script/common/config.js" charset="utf-8"></script>
<script src="../../../../script/common/vue.min.js" charset="utf-8"></script>
<script>
    apiready = function() {
        api.parseTapmode();
        vm.init();
    }

    var vm = new Vue({
        el: "#app",
        data: {
            userInfo: {}
        },
        methods: {
            init() {
                this.userInfo = get_local('userInfo');
            },
            openWin(name) {
                var winInfo = {
                    personal_info: {
                        name: 'personal_info_win',
                        url: './personal_info_win.html'
                    },
                    authentication_information: {
                        name: 'authentication_information_win',
                        url: './authentication_information_win.html'
                    },
                    service_info: {
                        name: 'service_info_win',
                        url: './service_info_win.html'
                    },
                    case_show: {
                        name: 'case_show_win',
                        url: './case_show_win.html'
                    },
                };
                if (name) {
                    open_w(winInfo[name].name, winInfo[name].url);
                } else {
                    $toast("正在开发中...");
                }
            }
        }
    });
</script>

</html>
